// InputStream.h: interface for the InputStream class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_INPUTSTREAM_H__02C24B2B_7BC4_4B76_BB64_3113FC31CE61__INCLUDED_)
#define AFX_INPUTSTREAM_H__02C24B2B_7BC4_4B76_BB64_3113FC31CE61__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "IOException.h"
#include "../types.h"
class InputStream
{
private:
	SOCKET csocket;
	void recibir(char* data,unsigned int length);
public:
	InputStream();
	virtual ~InputStream();
	unsigned int read(Mensaje &data);
	unsigned int read(char* data,unsigned int length);
	void setSocket(SOCKET sock) {this->csocket = sock; }
};

#endif // !defined(AFX_INPUTSTREAM_H__02C24B2B_7BC4_4B76_BB64_3113FC31CE61__INCLUDED_)
